<?php
    include('header.php');
    include('submenu.php');
    
    if($m_id!=3){
        $imgFiled =<<<xxx
            <p>รูป : </p>
            <p class="guideline">ขนาด 700x450 pixel</p>
            <input type="file" name="news_img" class="input large" />
xxx;
    }else{
        $imgFiled =<<<xxx
            <p>Youtube Url : </p>
            <input type="text" name="news_img" class="input large" />
xxx;
    }
?>
    <div class="grid_18" id="contents">
        
        <div id="contents_">
            <form action="?m=media-communications&s=slide-add_query&m_id=<?php echo $m_id; ?>" method="post" enctype="multipart/form-data">
            <input type="hidden" name="h_m_id" value="<?php echo $m_id; ?>" />
            <div id="about_us_company_msg_1_th" class="form_field">
                <?php echo $imgFiled; ?>
            </div>
            <div id="about_us_company_msg_1_th" class="form_field">
                <p>ข้อความ (en) : </p>
                <textarea name="text_en" class="styled_textarea" style="height:50px;"></textarea>
            </div>
            <div id="about_us_company_msg_1_th" class="form_field">
                <p>ข้อความ (th) : </p>
                <textarea name="text_th" class="styled_textarea" style="height:50px;"></textarea>
            </div>
            
            <div id="about_us_company_msg_2_en" class="form_field">
                <button class="button">SAVE</button>
                <!--<div class="button" onclick="window.location='?m=services&s=packing-dyntecdisc-product'">CANCEL</div>-->
            </div>
            </form>
        </div>
        
    </div><!-- end .grid_18 -->
    <div class="clear">&nbsp;</div>
<?php
    include('footer.php');
?>